perm filename PUPSIG.C[11,HE] blob
sn#688210 filedate 1982-12-06 generic text, type T, neo UTF8
/* LINTLIBRARY */
/*
* pupsignal.c
*
* pupsignal sets a signal to be delivered if a packet arrives
* on the given PupChan.
*
* pupnosignal disables signals on the given PupChan.
*
* Signals are automatically disabled when sent; they must
* be explicitly re-enabled after being caught.
*
* Jeffrey Mogul @ Stanford 3 April 1981
*
*/
#include <puplib.h>
pupsignal(Pchan,signum)
struct PupChan *Pchan; /* channel data structure */
int signum; /* signal number to set */
{
/*
* another place to special-case on network type
*/
ensignal(Pchan->ifid,signum);
}
pupnosignal(Pchan)
struct PupChan *Pchan; /* channel data structure */
{
/*
* another place to special-case on network type
*/
ensignal(Pchan->ifid,0); /* signal 0 == no signal */
}